package com.ruoyi.assemble.fastloader.service;


import com.ruoyi.assemble.fastloader.model.TChunkInfo;

import java.util.ArrayList;

/**
 * 文件块处理
 * @author 洋葱骑士
 *
 */
public interface ChunkService {
    /**
     * saveChunk
     *
     * @author 
     * @description saveChunk
     * @time 2022/8/31 15:57
 * @param chunk
     * @return int
     */
    public int saveChunk(TChunkInfo chunk);

    /**
     * checkChunk
     *
     * @author 
     * @description checkChunk
     * @time 2022/8/31 15:57
     * @param identifier
     * @param chunkNumber
     * @return boolean
     */
    boolean checkChunk(String identifier, Integer chunkNumber);

    /**
     * checkChunk
     *
     * @author 
     * @description checkChunk
     * @time 2022/8/31 15:58
 * @param chunk
     * @return java.util.ArrayList<java.lang.Integer>
     */
    public ArrayList<Integer> checkChunk(TChunkInfo chunk);
}
